<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>未选择学生列表</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        th {
            background-color: #f2f2f2;
        }
        button {
            padding: 5px 10px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        button:hover {
            background-color: #218838;
        }
    </style>
</head>
<body>
<h1>未选择学生列表</h1>
<table>
    <thead>
    <tr>
        <th>学生ID</th>
        <th>学生姓名</th>
        <th>本科专业</th>
        <th>本科学校</th>
        <th>考试成绩</th>
        <th>复试状态</th>
        <th>二级学科名称</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="student" items="${students}">
        <tr>
            <td>${student.studentId}</td>
            <td>${student.studentName}</td>
            <td>${student.undergraduateMajor}</td>
            <td>${student.undergraduateSchool}</td>
            <td>${student.examScore}</td>
            <td>${student.retestStatus}</td>
            <td>${student.secondaryDisciplineName}</td>
            <td>
                <form action="freeSelectStudent" method="post">
                    <input type="hidden" name="mentorId" value="${requestScope.mentorId}" />
                    <input type="hidden" name="studentId" value="${student.studentId}" />
                    <button type="submit">选择</button>
                </form>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
